from django.core.files.base import File
from django.core.files.images import ImageFile


def run():
    f = open(r'E:\project\django_core_code\books\scripts\core\img.png', 'rb')
    f.close()
    im = ImageFile(f)
    print(im.size)
